package view; 

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ListAdapter;

import com.kkom1.tapeat.R;

import data_management.PatternDataManager;
import data_management.SettingData;


/**
 * <pre>
 * view 
 * PatterListFragment.java
 *
 * �ㅻ챸 :
 * </pre>
 * 
 * @since : 2013. 8. 23.
 * @author : kwma
 * @version : v1.0
 */
public class PatterListFragment extends Fragment implements OnClickListener {
	int i = 0;
	private SettingData sdata;
	private PatternDataManager pdata;
	private ListAdapter listadapter;

	private void init(){
		// get data structures
		sdata = SettingData.getInstance();
		pdata  = PatternDataManager.getInstance();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		View v = inflater.inflate(R.layout.activity_plist, container);

		Button btn = (Button)v.findViewById(R.id.bt_setapp);
		
		// TODO implement list view
		// add listener to list view
		

		return v;
	}

	@Override
	public void onClick(View v) {

		switch(v.getId())
		{
		case R.id.bt_setapp :
		{
			// TODO set view to main view
		}

		}

	}
}
